Skip to content

fix(stackable-versioned): Validate kind, desired and current version #1061

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 37 commits into
base: main
Choose a base branch
from

Conversation

sbernauer
Copy link
Member

@sbernauer sbernauer commented Jun 23, 2025

Motivation

#1056 will also fix at least some of the bugs, but I would prefer to fix the bugs fast and have tests.
I'm happy that my code gets overwritten by #1056 as longs as the tests pass.
By fixing the problems we can continue on working an the actual conversion HTTPS webhook stuff.

Description

Fix some problems in the (brand new) conversions. And most important: Re-add tests that temporarily have been removed from #1050

  • check if we know about the desired version, error if not. Previously we would noop for unknown desired versions.
  • k8s sends us test.stackable.tech/v1alpha1 as apiVersion, not v1alpha1
  • Check that the sent k8s kind is the one we expect

PS: The diff is so big because lots of tests (snapshots) changed. Actual code change is only a small portion.

@sbernauer sbernauer changed the title fix(stackable-versioned): Fix multiple bugs in ConversionReviews integration fix(stackable-versioned): Fix bugs in ConversionReviews integration Jun 23, 2025
@sbernauer sbernauer moved this to Development: Waiting for Review in Stackable Engineering Jun 23, 2025
NickLarsenNZ

This comment was marked as resolved.

…/k8s.rs

Co-authored-by: Nick <10092581+NickLarsenNZ@users.noreply.github.com>
@sbernauer sbernauer requested a review from NickLarsenNZ June 24, 2025 07:13
@sbernauer sbernauer moved this from Development: Waiting for Review to Development: In Review in Stackable Engineering Jun 24, 2025
@sbernauer sbernauer requested a review from Techassi June 24, 2025 13:35
@Techassi Techassi changed the title fix(stackable-versioned): Fix bugs in ConversionReviews integration fix(stackable-versioned): Validate kind and desired version Jun 25, 2025
@sbernauer sbernauer changed the title fix(stackable-versioned): Validate kind and desired version fix(stackable-versioned): Validate kind, desired and current version Jun 25, 2025
@sbernauer sbernauer enabled auto-merge June 25, 2025 12:36
@sbernauer sbernauer moved this from Development: In Review to Development: Done in Stackable Engineering Jun 25, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Development: Done
Development

Successfully merging this pull request may close these issues.

3 participants